<p><a href="<?php echo $this->url(array(
												'module' => 'admin',
												'controller' => 'pages',
												'action' => 'edit'),null,false);?>">Add new page</a></p>
				
<table class="spreadsheet" cellpadding="0" cellspacing="0" style="margin:10px auto">
	<thead>
		<tr>
			<th>#</th>
			<th>id</th>
			<th>url</th>
			<th>&nbsp;</th>
			<th>&nbsp;</th>
		</tr>
	</thead>
	<tbody>
		<?php
			if($this->pages):
			 foreach ($this->pages as $page) : ?>
					<tr>
						<td></td>
						<td><?php echo $page->id;?></td>
						<td><?php echo $page->url;?></td>
						<td><a href="<?php echo $this->url(array(
																		'module' => 'admin',
																		'controller' => 'pages',
																		'action' => 'edit',
																		'id' =>  $page->id));?>">Edit</a></td>
						<td><a href="<?php echo $this->url(array(
																		'module' => 'admin',
																		'controller' => 'pages',
																		'action' => 'delete',
																		'id' =>  $page->id));?>">Delete </a></td>
						
					</tr><?php
				 endforeach;
			endif?>
	</tbody>
</table>